using System;
using System.Collections.Generic;
using System.Text;
using WCSFContrib.ECommerceCatalog.Product.Interfaces.Services;
using WCSFContrib.ECommerceCatalog.BusinessEntities;

namespace WCSFContrib.ECommerceCatalog.User.Tests.Fakes
{
    public class FakeItemsService : IItemsService
    {
        public List<Item> Items = new List<Item>();

        #region IItemsService Members

        public ICollection<BusinessEntities.Item> AllItems
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public BusinessEntities.Item GetItemById(int itemId)
        {
            return Items.Find(delegate(Item item) { return item.ItemId == itemId; });
        }

        public ICollection<BusinessEntities.Item> GetItemsByCategory(int categoryId)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public void UpdateItem(BusinessEntities.Item item)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public ICollection<BusinessEntities.Item> SearchItems(string searchText)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public ICollection<BusinessEntities.Item> SearchItems(string searchText, string categoryId)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion
    }
}
